/*
	防抖函数封装
*/
let timer = null
export function myDebounce (fn, delay) {
	// console.log('debounce satrt', timer)
	if (timer) {
		clearTimeout(timer)
	}
	// console.log('debounce claer', timer)
	timer = setTimeout(fn, delay)
	// console.log('debounce end', timer)
}
